package local.bbs.cont.service;

import local.bbs.cont.command.BBSCommand;
import local.bbs.cont.dao.BBSUpdateDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BBSUpdateService {
	
	@Autowired
	BBSUpdateDao bbsUpdateDao;

	public int insert(BBSCommand bbsCommand) {
		return bbsUpdateDao.insert(bbsCommand);
	}

	public int update(BBSCommand bbsCommand) {
		return bbsUpdateDao.update(bbsCommand);
	}

	public int delete(BBSCommand bbsCommand) {
		return bbsUpdateDao.delete(bbsCommand);
	}
}
